import { browserHistory } from 'react-router';

/**
 * Forwards the use
 * @param {string} location The route the user should be forwarded to
 */
export function forwardTo(location) {
    console.log('forwardTo(' + location + ')');
    browserHistory.push(location);

}

export function removeLoading(){
    let ele = document.getElementById("loading_init");
    if(ele) ele.outerHTML = "";
}